package org.example.demo;

import org.example.demo.controller.TestController;
import com.sevensoft.framework.context.ApplicationContext;
import com.sevensoft.framework.context.support.ClassPathXmlApplicationContext;
//import org.springframework.context.ApplicationContext;
//import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {
    public static void main(String[] args) throws Exception {

        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        TestController testController = applicationContext.getBean("testController", TestController.class);
        System.out.println(testController.testApi());
    }
}
